#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
	int a = 1;
	int b = 1;
	int c = 1;
	int d = 1;
	scanf("%d", &a, &b);
	scanf("%d", &b);
	c = a + b;
	d = a - b;
	printf("%d\n", c);
	printf("%d", d);
	return 0;
}